package priv.conceit.study.book.lambda.chapter2;

import javax.swing.text.DateFormatter;
import java.text.SimpleDateFormat;
import java.time.format.DateTimeFormatter;
import java.util.function.Supplier;

/**
 * study
 * 第二章第七节 第二小题
 *
 * @author Conceit
 * 2020/1/26 增加方法
 * @since 1.0.0, 2020/1/26
 */
public class TreadLocalLambda {

	public static void main(String[] args) {
		//

	}

	/**
	  * execute
	  * {@link ThreadLocal#withInitial(Supplier)}
	  * @param
	  * @return void
	  * @author conceit
	  * @date 2020/1/26 11:34
	  */
	public void execute(){
		ThreadLocal threadLocal=ThreadLocal.withInitial(()->new DateFormatter(new SimpleDateFormat("")));
	}

	public TreadLocalLambda() {
		execute();
	}
}
